from rest_framework import serializers

from home.models import NavModel, BannerModel


class NavSerializer(serializers.ModelSerializer):
    class Meta:
        model = NavModel
        fields = '__all__'


class BannerSerializer(serializers.ModelSerializer):
    class Meta:
        model = BannerModel
        fields = '__all__'
